home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / m / src / mgui.c < prev    next >
C/C++ Source or Header  |  1995-04-22  |  2KB  |  86 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    DialogID ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    MessageID[2] ;
  11. extern int    IconID ;
  12. extern int    quitFunc() ;
  13.  
  14. #define ALIGN    4
  15. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  16.  
  17. /*    MMI_init 用データ    */
  18.  
  19. /*    ヘッダ    */
  20.  
  21. MMIINIT    initDataMGUI = { "MmiInit",   4, 0 } ;
  22.  
  23. /* DialogID */
  24.  
  25. static MMIPACKET d001 = {    &DialogID,
  26.                             &MJ_BASEOBJ,
  27.                             &MJ_DIALOGL40,
  28.                             OFFSET(DIALOGL40),
  29.                             MS_NONE
  30.                         } ;
  31. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  32.                              236, 220, 405, 261, 8, 9, 8,
  33.                             MS_PANELL40 | MS_FRAMEL40,
  34.                             NULL,   0,   0
  35.                         } ;
  36.  
  37. /* MessageID[0] */
  38.  
  39. static MMIPACKET d002 = {    &MessageID[0],
  40.                             &DialogID,
  41.                             &MJ_MSGL40,
  42.                             OFFSET(MSGL40),
  43.                             MS_NONE
  44.                         } ;
  45. static MSGL40    d002d =     {    MS_DSPONLYL40,
  46.                              243, 243, 398, 254, 8, 1,15,
  47.                             MS_OPAQUEL40,
  48.                             "888,888,888 -> 888,888,888",
  49.                                1,  12,  12,
  50.                             MS_NONEL40,
  51.                                0,   0
  52.                         } ;
  53.  
  54. /* MessageID[1] */
  55.  
  56. static MMIPACKET d003 = {    &MessageID[1],
  57.                             &DialogID,
  58.                             &MJ_MSGL40,
  59.                             OFFSET(MSGL40),
  60.                             MS_NONE
  61.                         } ;
  62. static MSGL40    d003d =     {    MS_DSPONLYL40,
  63.                              285, 227, 356, 238, 8, 1,15,
  64.                             MS_OPAQUEL40,
  65.                             "+888,888,888",
  66.                                1,  12,  12,
  67.                             MS_NONEL40,
  68.                                0,   0
  69.                         } ;
  70.  
  71. /* IconID */
  72.  
  73. static MMIPACKET d004 = {    &IconID,
  74.                             &DialogID,
  75.                             &MJ_ICONL40,
  76.                             0,
  77.                             MS_NONE
  78.                         } ;
  79. static ICONL40    d004d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  80.                              242, 225, 256, 239, 8, 9, 8,
  81.                             MS_UFRAMEL40 | MS_FRAMEL40,
  82.                             quitFunc,
  83.                             0x801d, 285
  84.                         } ;
  85.  
  86.